﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/_FrontEnd_Index.Master" AutoEventWireup="true" CodeBehind="SanPham.aspx.cs" Inherits="MyWeb.GUI.User.SanPham" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="row">

				<aside class="span3">
					<div class="categories">
						<div class="titleHeader clearfix">
							<h3>Sản Phẩm</h3>
						</div><!--end titleHeader-->
						<ul class="unstyled">
							<li><a class="invarseColor active" href="#">Hãng Sản Xuất</a>
                                <ul class="submenu">
                                    <asp:Repeater ID="rploadhangsx" runat="server">
                                        <ItemTemplate>
                                            <li><%--<a class="invarseColor" href="SanPham.aspx?MaHangSX=<%#Eval("MaHangSX") %>"><%#Eval("TenHangSX") %> (<%#Eval("DemMaHang") %>)</a>--%></li>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </ul>
							</li>
						</ul>
					</div><!--end categories-->

					<div class="special">
						<div class="titleHeader clearfix">
							<h3>Sản Phẩm Bán Chạy</h3>
						</div><!--end titleHeader-->

						<ul class="vProductItemsTiny">
                            <asp:Repeater ID="rpHangbanchay" runat="server">
                                <ItemTemplate>
                                    <li class="span4 clearfix">
                                        <div class="thumbImage">
                                            <a href="ChiTietSanPham.aspx?MaSP=<%#Eval("MaDienThoai") %>">
                                                <img src="/Content/HinhSanPham/<%#Eval("HinhDaiDien") %>" style="width: 92px; height: 92px;" alt=""></a>
                                        </div>
                                        <div class="thumbSetting">
                                            <div class="thumbTitle">
                                                <a href="#" class="invarseColor">
                                                    <%#Eval("TenDienThoai") %>
                                                </a>
                                            </div>
                                            <div class="thumbPrice">
                                                <span><%#Eval("Gia","{0:0,0,0}") %>&nbsp;VNĐ</span>
                                            </div>
                                        </div>
                                    </li>
                                </ItemTemplate>
                            </asp:Repeater>
						</ul>
					</div><!--end special-->
				</aside><!--end aside-->
				<div class="span9">

					<div id="productSlider" class="carousel slide">
						<!-- Carousel items -->
					    <div class="carousel-inner">
					      <div class="active item"><img src="/Content/HinhSanPham/image-1384917047-Samsung-Galaxy-S-VI-concept-1.jpg" alt="" style="width:694px;height:240px;"></div>
					      <div class="item"><img src="/Content/HinhSanPham/1382441857733.png" alt="" style="width:694px;height:240px;"></div>
					      <div class="item"><img src="/Content/HinhSanPham/2-iphone-5s-nam-pha-le-co-gia-len-toi-hang-tram-trieu-dong.jpg" alt="" style="width:694px;height:240px;"></div>
					    </div>

					    <!-- Carousel nav -->
					    <a class="carousel-control left" href="#productSlider" data-slide="prev">&lsaquo;</a>
					    <a class="carousel-control right" href="#productSlider" data-slide="next">&rsaquo;</a>
					</div><!--end productSlider-->


					<div class="productFilter clearfix">

						<div class="sortBy inline pull-left">
							Sắp Xếp
							<select name="sortItem">
								<option value="Default">Giá tăng dần</option>
								<option value="">Giá giảm dần</option>
								
							</select>
						</div>

						<div class="showItem inline pull-left">
							Show
							<select name="showItem">
								<option value="15">15</option>
								<option value="25">25</option>
								<option value="50">50</option>
								<option value="75">75</option>
								<option value="100">100</option>
							</select>
						</div><!--end sortBy-->
						

					</div><!--end productFilter-->


					<div class="row">
						<ul class="hProductItems clearfix">
                            <asp:Repeater ID="rpSanPham" runat="server" OnItemCommand="rpSanPham_ItemCommand">
                                <ItemTemplate>
                                    <li class="span3 clearfix">
                                        <div class="thumbnail">
                                            <a href="ChiTietSanPham.aspx?MaSP=<%#Eval("MaDienThoai") %>">
                                                <img src="/Content/HinhSanPham/<%#Eval("HinhDaiDien") %>" style="height:192px; width:212px;" alt=""></a>
                                        </div>
                                        <div class="thumbSetting">
                                            <div class="thumbTitle">
                                                <a href="ChiTietSanPham.aspx?MaSP=<%#Eval("MaDienThoai") %>" class="invarseColor"><%#Eval("TenDienThoai") %>
                                                </a>
                                            </div>
                                            <div class="thumbTitle">
                                                Hãng Sản Xuất: <%#Eval("TenHangSX") %>
                                            </div>
                                            <div class="thumbPrice">
                                                <span><%#Eval("Gia","{0:0,0,0}") %></span>
                                            </div>

                                            <div class="thumbButtons">
                                                <asp:LinkButton CssClass="btn btn-primary btn-small" CommandName="AddCart" CommandArgument='<%#Eval("MaDienThoai") %>'  data-title="+To Cart" data-placement="top" rel="tooltip" ID="btnAddCart" runat="server">Đặt Hàng</asp:LinkButton>
                                            <asp:LinkButton ID="btnSeeMore" CommandName="Detail" CommandArgument='<%#Eval("MaDienThoai") %>' runat="server" CssClass="btn btn-small" data-title="+To See More" data-placement="top" rel="tooltip">Chi Tiết</asp:LinkButton>
                                            </div>
                                        </div>
                                    </li>
                                </ItemTemplate>
                            </asp:Repeater>
						</ul>
					</div><!--end row-->


				</div><!--end span9-->

			</div><!--end row-->

</asp:Content>
